﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.SmartMecial.Services.WorkforceManage
{
    public class ReplaceWorkService: IReplaceWorkService
    {
        private readonly IBaseRepository<Nurse> _workforceRep;

        public ReplaceWorkService(IBaseRepository<Nurse> workforceRep) 
        {
            this._workforceRep = workforceRep;
        }

        public  async Task<List<Nurse>> ReplaceWorkShow() 
        {
            var replaceWorkShow = _workforceRep.GetAll();
            return await Task.FromResult(replaceWorkShow.ToList());
        }
    }
}
